<?php

namespace catchAdmin\phone\controller;

use catcher\CatchResponse;

class LiuYan extends LoginCatchController
{

    private $model = null;


    public function __construct()
    {
        parent::__construct();

        $this->model = (new \catchAdmin\phone\model\LiuYan());
    }


    /**
     * 保存
     */
    public function save()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->saveData($param));
    }


    /**
     * 回复
     */
    public function huiFu()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->huiFu($param));
    }


    ################################## 显示 ########################


    /**
     * 列表
     */
    public function index()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->indexData($param));
    }


    public function read()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->readData($param));
    }


    /**
     * 列表
     */
    public function indexZhuTi()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->indexZhuTi($param));
    }

}
